<?php

/**
 *时间轴事件发布
 */
$sql = "
CREATE TABLE IF NOT EXISTS " . tablename('micro_event') . " (
`event_id` int(10) unsigned  AUTO_INCREMENT,
`uniacid` int(11) NOT NULL,
`event_time` date,
`event_title` varchar(40) NOT NULL,
`event_content` text,
`highlight` boolean,
 PRIMARY KEY (`event_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;";
pdo_query($sql);

$sql = "
CREATE TABLE IF NOT EXISTS " . tablename('micro_eventsetting') . " (
`id` int(10) unsigned  AUTO_INCREMENT,
`uniacid` int(11) NOT NULL,
`title` varchar(40) NOT NULL,
`copyright` varchar(100),
`eorder` boolean,
`skin` int(3),
`share_title` varchar(100),
`share_icon` varchar(200),
`share_content` varchar(200),
 PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;";
pdo_query($sql);

$sql = "
CREATE TABLE IF NOT EXISTS " . tablename('micro_eventuser') . " (
`event_id` int(10) unsigned  AUTO_INCREMENT,
`event_userid` varchar(100),
`event_time` date,
`event_title` varchar(40) NOT NULL,
`event_content` text,
`highlight` boolean,
 PRIMARY KEY (`event_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;";
pdo_query($sql);





